package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblWpBrandUnitConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

/**
 * 唯品会品牌对应配置 服务类
 * @author xiaochuan
 * @since 2020-04-09
 */

public interface ITblWpBrandUnitConfigService extends IBaseService {

    /**
     * getWpBrandByBrandUnitName
     * @param brandUnitName
     * @return
     * @throws ServiceException
     */
    @Cacheable("wpBrandByBrandUnit")
    TblWpBrandUnitConfig getWpBrandByBrandUnitName(String brandUnitName) throws ServiceException;

    /**
     * getWpBrandMap
     * @return
     * @throws ServiceException
     */
    //@Cacheable("wpBrandMap")
    Map<String,String> getWpBrandMap() throws ServiceException;

    List<TblWpBrandUnitConfig> getBrandUnitConfig(String wpBrandName, String vendorCode) throws ServiceException;
}

